package com.liuxing.doctor.dto;

import com.liuxing.doctor.entity.Doctor;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;

/**
 * @author 行柳
 * 学习使用
 */
@XmlRootElement(name="doctors")
public class Doctors {

    private List<Doctor> doctors;
    @XmlElement(name="doctor")
    public List<Doctor> getDoctors() {
        return doctors;
    }

    public void setDoctors(List<Doctor> doctors) {
        this.doctors = doctors;
    }
}
